﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace SampleProducer {
    public static class Logger {
        public static event Action<String> TextLogged;
        
        public static void Log(String format, params Object[] args) {
            Log(String.Format(CultureInfo.InvariantCulture, format, args));
        }

        public static void Log(String message) {
            var _textLogged = TextLogged;
            if(_textLogged != null)
                _textLogged(message);
        }
    }
}
